package org.jeecg.modules.AccessoriesCenter.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.AccessoriesCenter.entity.LibuDaochuEntity;
import org.jeecg.modules.AccessoriesCenter.entity.LibuEntity;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface LibuManageMapper {
    IPage<LibuEntity> getLibuList(Page<LibuEntity> page, @Param("status") Integer status,@Param("libuCode") String libuCode);

    int updateLibustatus(@Param("id") int id,@Param("status") int status);

    //查询里布编号是否已经存在
    String getlibucodebylibucode(@Param("libuCode") String libuCode);

    int addLibu(LibuEntity entity);

    LibuEntity getLibubyId(@Param("id") int id);

    int updateLibu(LibuEntity entity);

    List<LibuDaochuEntity> getLibuDaochulist(@Param("status") Integer status, @Param("libuCode") String libuCode);

    void addExcelLibu(LibuDaochuEntity libuDaochuEntity);

    void updateExcelLibu(LibuDaochuEntity libuDaochuEntity);
}
